

package com.hazelcast.security;

import com.hazelcast.core.HazelcastInstance;

import javax.security.auth.callback.Callback;

/**
 * This JAAS {@link Callback} is used to retrieve the current {@link HazelcastInstance}.
 * <p>
 * This {@link Callback} is only supported on Hazelcast member side.
 */
public class HazelcastInstanceCallback implements Callback {

    private HazelcastInstance hazelcastInstance;

    public HazelcastInstance getHazelcastInstance() {
        return hazelcastInstance;
    }

    public void setHazelcastInstance(HazelcastInstance hazelcastInstance) {
        this.hazelcastInstance = hazelcastInstance;
    }
}
